package phase6;

public class HyPeerWebSegmentThread extends Thread
{
	private String port;
	private String address;
	
	public HyPeerWebSegmentThread(String port, String address)
	{
		this.port = port;
		this.address = address;
	}
	
	public void run()
	{
		String args[] = new String[3];
		
		if(address == null || address == "")
		{
			args[0] = port;
		}
		else
		{
			args[0] = "-o";
			args[1] = address;
			args[2] = port;
		}
		
		SegmentRunner.main(args);
	}
}
